home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java for 3D & VRML Worlds
/
Java for 3d and VRML Worlds.iso
/
examples
/
chap02
/
chair.wrl
< prev
next >
Wrap
Text File
|
1996-10-15
|
1KB
|
66 lines
#VRML Draft #3 V2.0 utf8
#
# chair.wrl
#
Background{
skyColor 0 0.3 0.8
}
DEF Chair Transform {
translation 0 -2 10
children [
Transform {
translation 0.5 0.5 0.5
children [
DEF SEAT Shape {
appearance Appearance {
material Material { diffuseColor 0 1 0 }
}
geometry Box { size 1 0.1 1 }
}
]
}
DEF LEG Transform {
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0 0 1
}
}
geometry Cylinder {
height 1 radius .1
}
}
]
}
Transform {
translation 0 0 1
children [
USE LEG
]
}
Transform {
translation 1 0 0
children [
USE LEG
]
}
Transform {
translation 1 0 1
children [
USE LEG
]
}
] # end of children for chair
}
DEF BACK Transform {
translation 0.5 -1 9.7
rotation 1 0 0 1.2
children [
USE SEAT
]
}